import 'package:flutterproject/generated/json/base/json_convert_content.dart';
import 'package:flutterproject/page/red_package/data/pick_bean.dart';

PickBean $PickBeanFromJson(Map<String, dynamic> json) {
	final PickBean pickBean = PickBean();
	final String? awardName = jsonConvert.convert<String>(json['awardName']);
	if (awardName != null) {
		pickBean.awardName = awardName;
	}
	final double? releasedAmount = jsonConvert.convert<double>(json['releasedAmount']);
	if (releasedAmount != null) {
		pickBean.releasedAmount = releasedAmount;
	}
	final int? result = jsonConvert.convert<int>(json['result']);
	if (result != null) {
		pickBean.result = result;
	}
	final int? times = jsonConvert.convert<int>(json['times']);
	if (times != null) {
		pickBean.times = times;
	}
	return pickBean;
}

Map<String, dynamic> $PickBeanToJson(PickBean entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['awardName'] = entity.awardName;
	data['releasedAmount'] = entity.releasedAmount;
	data['result'] = entity.result;
	data['times'] = entity.times;
	return data;
}